from model.user import User
from model.film import Film

def test_add_film(app):
    app.login(User.Admin())
    new_film = Film.Unknown()
    app.add_film(new_film)
    app.is_error_present()
    new_film = Film.EdgeOfTomorrow()
    app.add_film(new_film)
    app.is_added()
    app.logout()